package com.jiuyou.clientController.dict;

import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.system.service.ISysDictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 字典配置
 * @Author: chengliang
 * @Date: Created in 2021/3/24 11:53
 */
@RestController
@RequestMapping("/client/dict")
public class DictClientController {

    @Autowired
    private ISysDictDataService dictDataService;

    @RequestMapping("/list/{type}")
    public List<SysDictData> list(@PathVariable String type){
        SysDictData sysDictData = new SysDictData();
        sysDictData.setDictType(type);
        sysDictData.setStatus("0");
        return dictDataService.selectDictDataList(sysDictData);

    }

}
